//
//  SHD_ExectTableCell.m
//  B段项目
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 谢美娜. All rights reserved.
//

#import "SHD_ExectTableCell.h"

@implementation SHD_ExectTableCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _midImageView =[[UIImageView alloc]init];
        _contectLabel = [[myContectLabel alloc]init];
        [self.contentView addSubview:_midImageView];
        [self.contentView addSubview:_contectLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _midImageView.frame = CGRectMake(15 * FitWidth, 15 * FitHeight, 345 * FitWidth, 200 * FitHeight);
    _contectLabel.frame = CGRectMake(_midImageView.frame.origin.x, _midImageView.frame.size.height + _midImageView.frame.origin.y + 10 * FitHeight, _midImageView.frame.size.width, 22 * FitHeight);
    
}
-(void)setExectModel:(SHD_ExectMedol *)exectModel
{
    _exectModel = exectModel;
    [_midImageView sd_setImageWithURL:[NSURL URLWithString:exectModel.coverimg] placeholderImage:[UIImage imageNamed:@"SHD_Scroll"]];
    _contectLabel.text = exectModel.title;
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
